﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace Chowpoo.Util
{
    public class Security
    {
        /// <summary>
        /// 返回大写MD5结果
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static string Pass2Md5(string str)
        {
            return FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5");
        }
    }
}
